
//
//  Country.swift
//  ImGuider X
//
//  Created by 陆涛 on 2018/9/28.
//  Copyright © 2018 imguider. All rights reserved.
//

import UIKit

class Country: NSObject,Codable {

    var continent,country,fname,ename,jname,code,idx,pictures: String?
    
    var isshow,id:Int?
    
    
    /// 首字母
    var initial:String {
        
        return smartName?.firstLetter ?? "#"
    }
    
    var smartName:String? {
        
        if AppManager.share.language == .chinese {
            
            return country
        }
        
        return ename ?? country
    }
    
}
